//
//  ForumDetailController.m
//  一键车讯
//
//  Created by Rabbit on 14-10-30.
//  Copyright (c) 2014年 lanou.3g.com. All rights reserved.
//

#import "ForumDetailController.h"
#import "NetHandler.h"

@interface ForumDetailController ()

@end

@implementation ForumDetailController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    NSMutableString *str1 = [NSMutableString stringWithFormat:@"http://mrobot.pcauto.com.cn/v2/bbs/topics/%@?pageNo=1&pageSize=19&picRule=2&authorId=0&topicTemplate=4.0.0&app=pcautobrowser&size=18", self.forum.topicId]; // 3.接收传来的值
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:str1] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60];
    // webView 加载请求
    [webView loadRequest:request];
    [self.view addSubview:webView];
    [webView release];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
